package com.scp;

import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;

public class ActCadBase extends SherlockActivity {

	protected long id = -1;
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getSupportMenuInflater().inflate(R.menu.menu_gravacao, menu);
		return super.onCreateOptionsMenu(menu);
	}
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
			case R.id_menu_gravacao.btGravar:
				
				break;
			case R.id_menu_gravacao.btCancelar:
				this.finish();
				break;
			default:
				break;
		}
		
		return super.onOptionsItemSelected(item);
	}
}
